package com.modifiertech.lineage.skills;

import com.feed_the_beast.ftblib.lib.icon.Icon;
import com.modifiertech.lineage.BaseConst;
import com.modifiertech.lineage.api.PlayerDataSkill;
import com.modifiertech.lineage.client.gui.ftbint.GuiIconsV2;
import net.minecraftforge.event.entity.living.LivingHurtEvent;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Awadakada extends PlayerDataSkill {
    @Override
    protected Icon defineSkillIcon() {
        return GuiIconsV2.Warlock_070;
    }

    @Override
    protected String defineSkillType() {
        return BaseConst.PLAYER_ADV_TAG__SKILLS_SPE;
    }

    @Override
    protected String defineSkillSecondType() {
        return BaseConst.PLAYER_ADV_SEC_TAG__SKILLS_STATE;
    }

    @Override
    protected String defineSkillName() {
        return "awadakada";
    }

    @Override
    protected int defineSkillLevelDependency() {
        return 7;
    }

    @Override
    public String defineSkillDesc() {
        return "§4§l追魂索命,一触即死。\n" +
                "当拥有这个法术时，你已经站在黑魔法的顶端。\n" +
                "--伏地魔";
    }

    @Override
    protected double defineSkillRowX() {
        return 2;
    }

    @Override
    protected double defineSkillColumnY() {
        return 1;
    }

    @Override
    protected int defineSkillCoolDown() {
        return -1;
    }

    @Override
    protected double defineSkillManaUse() {
        return 0;
    }

    @Override
    protected List<String> defineSkillDependencyName() {
        return new ArrayList<>(Arrays.asList(new String[]{"基础黑魔法:2"}));
    }

    @Override
    protected int defineSkillRegion() {
        return 0;
    }

    @Override
    protected int defineUpgradePoint() {
        return 1;
    }

    @Override
    public void onAttackMob(LivingHurtEvent event) {
        event.getEntityLiving().setHealth(0);
    }


}
